<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>元素显示模式转换</title>
    <style>
        a {
            width: 150px;
            height: 50px;
            background-color: pink;
            display: block;
        }

        div {
            background-color: red;
            display: inline;
        }

        span {
            width: 100px;
            display: 30px;
            background-color: blue;
            display: inline-block;
        }
    </style>
</head>

<body>
    <a href="#">一二三</a>
    <div>
        三二一
    </div>
    <span>
        行内元素
    </span>
</body>

</html>